package com.education.service.oss;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;
import springfox.documentation.swagger2.annotations.EnableSwagger2;


/**
 * 启动阿里云 OSS 微服务
 * Created by Lance on 2020/06/23 17:07
 */
@EnableDiscoveryClient  // 启动注册中心
@EnableSwagger2
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)     //取消数据源自动配置
@ComponentScan({"com.education"})
public class ServiceOssApplication {

    public static void main(String[] args) {
        SpringApplication.run(ServiceOssApplication.class, args);
    }

}
